import { StateTypes } from '@/constants/Appliance'
import { OPERATION_STATES, POWER_STATES } from '@/constants/Command'
import type { ApplianceData } from '@/types/appliance'

const BaseVirtualData: Omit<ApplianceData, 'brand' | 'name' | 'picture' | 'type' | 'vib'> = {
  connected: true,
  cdate: '',
  haId: '',
  displayTimes: null,
  displayValue: null,
  operationState: OPERATION_STATES.READY,
  powerState: POWER_STATES.ON,
  stateType: StateTypes.online,
  is_virtual_appliance: true,
}

export const DemoWasherDryer = {
  ...BaseVirtualData,
  brand: 'SIEMENS',
  name: '洗干一体机',
  vib: 'WN54C8A10W',
  haId: '873020390341001335',
  picture: '/Assets/Network/Basic/WN54C8A10W/pic/WN54C8A10W_S.jpg',
  type: 'WasherDryer',
}

export const DemoCoffeeMaker = {
  ...BaseVirtualData,
  brand: 'SIEMENS',
  name: '咖啡机',
  vib: 'TQ707C03',
  haId: 'SIEMENS-TQ707C03-888888888888',
  picture: '/Assets/Network/Basic/TQ707C03/pic/TQ707C03_S.jpg',
  type: 'CoffeeMaker',
}

export const DemoDishwasher = {
  ...BaseVirtualData,
  brand: 'SIEMENS',
  name: '洗碗机',
  vib: 'SJ75ZX00MC',
  haId: 'SIEMENS-SJ75ZX00MC-888888888888',
  picture: '/Assets/Network/Basic/SJ75ZX00MC/pic/SJ75ZX00MC_S.png',
  type: 'Dishwasher',
}

export const DemoFridgeFreezer = {
  ...BaseVirtualData,
  brand: 'SIEMENS',
  name: '冰箱',
  vib: 'KF72FPA56C',
  haId: 'SIEMENS-KF72FPA56C-888888888888',
  picture: '/Assets/Network/HC3.0/pic/KF72FPA56C.png',
  type: 'FridgeFreezer',
}

export const DemoBIWD = {
  ...BaseVirtualData,
  brand: 'SIEMENS',
  name: '嵌饮机',
  vib: 'WS7060BB1C',
  haId: 'Siemens-WS7060BB1C-888888888888',
  picture: '/Assets/Network/HC3.0/pic/WS7060BB1C.png',
  type: 'BIWD',
}

export const DemoApplianceList: ApplianceData[] = [
  DemoFridgeFreezer,
  DemoWasherDryer,
  DemoDishwasher,
  DemoBIWD,
  DemoCoffeeMaker,
]
export default DemoApplianceList
